<?php

class searchQueryResult{
    
    public function isThere($search,$attr, $arrayStd){
        
        if(!empty($arrayStd)){
            foreach($arrayStd as $element){
                
                if($element->$attr == $search){                    
                    return true;
                }
            }
            
        }
        return false;
    }
     
    public function getInstance(){
        return new searchQueryResult();
    }
    
}

